package com.kamistoat.meimeimall.meimeimallproduct.dao;

import com.kamistoat.meimeimall.meimeimallproduct.entity.AttrEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 商品属性
 * 
 * @author kamistoat
 * @email linjianshanke@163.com
 * @date 2021-09-12 14:28:44
 */
@Mapper
public interface AttrDao extends BaseMapper<AttrEntity> {

    Long insertBatch(@Param("entityList") List<AttrEntity> attrEntities);

    List<AttrEntity> selectByGroupId(@Param("groupId") Long attrGroupId);

    List<AttrEntity> selectBaseAttrByCategoryId(@Param("catalogId") Long catalogId);

    List<AttrEntity> selectSaleAttrByCategoryId(@Param("catalogId") Long catalogId);
}
